<?php
<object class="Template_Recurring_Create5" name="Template_Recurring_Create5" baseclass="page">
  <property name="Background"></property>
  <property name="Caption">Template_Recurring</property>
  <property name="Color">#000000</property>
  <property name="DocType">dtNone</property>
  <property name="Height">744</property>
  <property name="IsMaster">0</property>
  <property name="Layout">
    <property name="Type">REL_XY_LAYOUT</property>
  </property>
  <property name="Name">Template_Recurring_Create5</property>
  <property name="UseAjax">1</property>
  <property name="Width">1037</property>
  <property name="OnCreate">Template_Recurring_Create5Create</property>
  <property name="jsOnLoad">cmbcompletionJSChange</property>
  <object class="Image" name="Image1" >
    <property name="Border">0</property>
    <property name="Height">30</property>
    <property name="ImageSource">image/add_recurring_task.png</property>
    <property name="Link"></property>
    <property name="LinkTarget"></property>
    <property name="Name">Image1</property>
    <property name="Top">32</property>
    <property name="Width">930</property>
  </object>
  <object class="DateTimePicker" name="dpBasis" >
    <property name="Caption">dpBasis</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="IfFormat">%Y-%m-%d</property>
    <property name="Left">404</property>
    <property name="Name">dpBasis</property>
    <property name="ParentFont">0</property>
    <property name="Top">412</property>
    <property name="Width">121</property>
  </object>
  <object class="ComboBox" name="cmbDaysMonths" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Items"><![CDATA[a:2:{s:4:&quot;Days&quot;;s:4:&quot;Days&quot;;s:6:&quot;Months&quot;;s:6:&quot;Months&quot;;}]]></property>
    <property name="Left">284</property>
    <property name="Name">cmbDaysMonths</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">3</property>
    <property name="Top">412</property>
    <property name="Visible">0</property>
    <property name="Width">74</property>
  </object>
  <object class="Edit" name="edDueEvery" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Left">117</property>
    <property name="Name">edDueEvery</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">2</property>
    <property name="Top">411</property>
    <property name="Width">157</property>
  </object>
  <object class="Label" name="lblDueby" >
    <property name="Alignment">agRight</property>
    <property name="Caption">Due by:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">30</property>
    <property name="Name">lblDueby</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">416</property>
    <property name="Visible">0</property>
    <property name="Width">75</property>
  </object>
  <object class="Label" name="lblDueEvery" >
    <property name="Alignment">agRight</property>
    <property name="Caption">Due every:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">30</property>
    <property name="Name">lblDueEvery</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">416</property>
    <property name="Width">75</property>
  </object>
  <object class="Label" name="Label1" >
    <property name="Alignment">agRight</property>
    <property name="Caption">Schedule by:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">15</property>
    <property name="Left">71</property>
    <property name="Name">Label1</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">106</property>
    <property name="Width">75</property>
  </object>
  <object class="ComboBox" name="cmbSchedule" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Items"><![CDATA[a:3:{s:5:&quot;Usage&quot;;s:7:&quot;Mileage&quot;;s:5:&quot;Hours&quot;;s:5:&quot;Hours&quot;;s:4:&quot;Time&quot;;s:4:&quot;Time&quot;;}]]></property>
    <property name="Left">158</property>
    <property name="Name">cmbSchedule</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">1</property>
    <property name="Top">105</property>
    <property name="Width">157</property>
    <property name="OnChange">cmbScheduleChange</property>
  </object>
  <object class="Label" name="lblType" >
    <property name="Alignment">agRight</property>
    <property name="Caption">Type:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">331</property>
    <property name="Name">lblType</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">201</property>
    <property name="Width">38</property>
  </object>
  <object class="ComboBox" name="cmbType" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Items">a:0:{}</property>
    <property name="Left">378</property>
    <property name="Name">cmbType</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">7</property>
    <property name="Top">196</property>
    <property name="Width">165</property>
  </object>
  <object class="Label" name="Label5" >
    <property name="Alignment">agRight</property>
    <property name="Caption">Task Description:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">33</property>
    <property name="Name">Label5</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">234</property>
    <property name="Width">113</property>
  </object>
  <object class="ComboBox" name="cmbDesc" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Items">a:0:{}</property>
    <property name="Left">337</property>
    <property name="Name">cmbDesc</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder"></property>
    <property name="Top">505</property>
    <property name="Visible">0</property>
    <property name="Width">385</property>
  </object>
  <object class="Label" name="lblFixedPrice" >
    <property name="Alignment">agRight</property>
    <property name="Caption">Fixed Price:</property>
    <property name="Height">13</property>
    <property name="Left">250</property>
    <property name="Name">lblFixedPrice</property>
    <property name="Top">541</property>
    <property name="Visible">0</property>
    <property name="Width">75</property>
  </object>
  <object class="Edit" name="edPrice" >
    <property name="Height">21</property>
    <property name="Left">337</property>
    <property name="Name">edPrice</property>
    <property name="Top">533</property>
    <property name="Visible">0</property>
    <property name="Width">175</property>
  </object>
  <object class="Label" name="Label2" >
    <property name="Alignment">agRight</property>
    <property name="Caption">Vendor:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">100</property>
    <property name="Name">Label2</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">264</property>
    <property name="Width">46</property>
  </object>
  <object class="ComboBox" name="cmbVendor" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Items">a:0:{}</property>
    <property name="Left">158</property>
    <property name="Name">cmbVendor</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">10</property>
    <property name="Top">264</property>
    <property name="Width">385</property>
  </object>
  <object class="Label" name="lblComments" >
    <property name="Alignment">agRight</property>
    <property name="Caption">Comments:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">71</property>
    <property name="Name">lblComments</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">293</property>
    <property name="Width">75</property>
  </object>
  <object class="Memo" name="memoComments" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">57</property>
    <property name="Left">158</property>
    <property name="Lines">a:0:{}</property>
    <property name="Name">memoComments</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">11</property>
    <property name="Top">293</property>
    <property name="Width">385</property>
  </object>
  <object class="Label" name="lblMilesHours" >
    <property name="Caption">Km</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">12</property>
    <property name="Left">284</property>
    <property name="Name">lblMilesHours</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">416</property>
    <property name="Width">23</property>
  </object>
  <object class="Label" name="lblOr" >
    <property name="Alignment">agRight</property>
    <property name="Caption">or</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">368</property>
    <property name="Name">lblOr</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">416</property>
    <property name="Visible">0</property>
    <property name="Width">11</property>
  </object>
  <object class="Label" name="lblOther" >
    <property name="Caption">Others:</property>
    <property name="Height">13</property>
    <property name="Left">524</property>
    <property name="Name">lblOther</property>
    <property name="Top">540</property>
    <property name="Visible">0</property>
    <property name="Width">43</property>
  </object>
  <object class="Edit" name="edOthers" >
    <property name="Height">21</property>
    <property name="Left">576</property>
    <property name="Name">edOthers</property>
    <property name="Top">536</property>
    <property name="Visible">0</property>
    <property name="Width">157</property>
  </object>
  <object class="Edit" name="edDueEvery2" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Left">404</property>
    <property name="Name">edDueEvery2</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">4</property>
    <property name="Top">412</property>
    <property name="Visible">0</property>
    <property name="Width">42</property>
  </object>
  <object class="ComboBox" name="cmbDaysMonths2" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Items"><![CDATA[a:2:{s:4:&quot;Days&quot;;s:4:&quot;Days&quot;;s:6:&quot;Months&quot;;s:6:&quot;Months&quot;;}]]></property>
    <property name="Left">451</property>
    <property name="Name">cmbDaysMonths2</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">5</property>
    <property name="Top">411</property>
    <property name="Visible">0</property>
    <property name="Width">74</property>
  </object>
  <object class="HiddenField" name="hiddenId" >
    <property name="Height">18</property>
    <property name="Left">438</property>
    <property name="Name">hiddenId</property>
    <property name="Top">64</property>
    <property name="Width">200</property>
  </object>
  <object class="HiddenField" name="hiddenStyle" >
    <property name="Height">18</property>
    <property name="Left">239</property>
    <property name="Name">hiddenStyle</property>
    <property name="Top">38</property>
    <property name="Width">200</property>
  </object>
  <object class="Label" name="lblfrm" >
    <property name="Alignment">agRight</property>
    <property name="Caption">from:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">368</property>
    <property name="Name">lblfrm</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">415</property>
    <property name="Visible">0</property>
    <property name="Width">35</property>
  </object>
  <object class="Label" name="Label3" >
    <property name="Alignment">agLeft</property>
    <property name="Caption">Completion Window:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">31</property>
    <property name="Name">Label3</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">201</property>
    <property name="Width">115</property>
  </object>
  <object class="ComboBox" name="cmbcompletion" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Items"><![CDATA[a:4:{s:10:&quot;--Select--&quot;;s:10:&quot;--Select--&quot;;s:9:&quot;WorkOrder&quot;;s:12:&quot;Work Summary&quot;;s:7:&quot;Payment&quot;;s:7:&quot;Payment&quot;;s:4:&quot;None&quot;;s:4:&quot;None&quot;;}]]></property>
    <property name="Left">158</property>
    <property name="Name">cmbcompletion</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">6</property>
    <property name="Top">196</property>
    <property name="Width">157</property>
    <property name="jsOnChange">cmbcompletionJSChange</property>
  </object>
  <object class="Button" name="btnShowDescription" >
    <property name="ButtonType">btNormal</property>
    <property name="Caption">+</property>
    <property name="Color">#000000</property>
    <property name="Cursor">crPointer</property>
    <property name="Font">
        <property name="Align">taCenter</property>
        <property name="Color">#FFFFFF</property>
        <property name="Size">10</property>
    </property>
    <property name="Height">20</property>
    <property name="Hint">add description</property>
    <property name="Left">725</property>
    <property name="Name">btnShowDescription</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="ParentShowHint">0</property>
    <property name="ShowHint">1</property>
    <property name="TabOrder"></property>
    <property name="Top">505</property>
    <property name="Visible">0</property>
    <property name="Width">20</property>
    <property name="jsOnClick">btnShowDescriptionJSClick</property>
  </object>
  <object class="Button" name="btnShowType" >
    <property name="ButtonType">btNormal</property>
    <property name="Caption">+</property>
    <property name="Color">#000000</property>
    <property name="Cursor">crPointer</property>
    <property name="Font">
        <property name="Align">taCenter</property>
        <property name="Color">#FFFFFF</property>
        <property name="Size">10</property>
    </property>
    <property name="Height">19</property>
    <property name="Hint">add type</property>
    <property name="Left">543</property>
    <property name="Name">btnShowType</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="ParentShowHint">0</property>
    <property name="ShowHint">1</property>
    <property name="TabOrder">8</property>
    <property name="Top">196</property>
    <property name="Width">20</property>
    <property name="jsOnClick">btnShowTypeJSClick</property>
  </object>
  <object class="HiddenField" name="compid" >
    <property name="Height">18</property>
    <property name="Left">639</property>
    <property name="Name">compid</property>
    <property name="Top">64</property>
    <property name="Width">200</property>
  </object>
  <object class="JTJavaScript" name="JTJavaScript1" >
    <property name="Code"><![CDATA[function AjaxType2(ty,compid)
{ 
try
  {
  // Firefox, Opera 8.0+, Safari
  httpxml=new XMLHttpRequest();
  }
  catch (e)
  {
  // Internet Explorer
  try
  {
  httpxml=new ActiveXObject(&quot;Msxml2.XMLHTTP&quot;);
  }
  catch (e)
  {
  try
  {
  httpxml=new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);
  }
  catch (e)
  {
  alert(&quot;Your browser does not support AJAX!&quot;);
  return false;
  }
  }
  }
  function stateck()
  {
  if(httpxml.readyState==4)
  {
  //eval(httpxml.responseText);
  AjaxType('templatetypeajax.php','cmbType',compid);
  AjaxType('templatetypeajax.php','listType',compid);

  }
  }
  var url='addtemplatetypeajax.php';
  url=url+&quot;?val=&quot;+ty;
  url=url+&quot;&amp;compid=&quot;+compid;
  httpxml.onreadystatechange=stateck;
  httpxml.open(&quot;GET&quot;,url,true);
  httpxml.send(null);
}]]></property>
    <property name="Height">20</property>
    <property name="Left">785</property>
    <property name="Name">JTJavaScript1</property>
    <property name="Top">73</property>
    <property name="Width">180</property>
  </object>
  <object class="JTJavaScript" name="JTJavaScript2" >
    <property name="Code"><![CDATA[function AjaxType(urlget,elemidtochange,compid)
{
var httpxml;
try
{
	// Firefox, Opera 8.0+, Safari
	httpxml=new XMLHttpRequest();
	}
	catch (e)
	{
	// Internet Explorer
	try
	{
	httpxml=new ActiveXObject(&quot;Msxml2.XMLHTTP&quot;);
	}
	catch (e)
	{
	try
	{
	httpxml=new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);
	}
	catch (e)
	{
	alert(&quot;Your browser does not support AJAX!&quot;);
	return false;
	}
	}
	}
	function stateck() 
	{
	if(httpxml.readyState==4)
	{
	var myarray=eval(httpxml.responseText);
	// Before adding new we must remove previously loaded elements
	for(j=document.getElementById(elemidtochange).options.length-1;j&gt;=0;j--)
	{
	document.getElementById(elemidtochange).remove(j);
	}
	for (i=0;i&lt;myarray.length;i++)
	{
	var objDropdown = document.getElementById(elemidtochange);
	var objOption = new Option(myarray[i],myarray[i]);
	objDropdown.options[objDropdown.length] = objOption;
	}
	}
	}
	var url=urlget;
	url=url+&quot;?compider=&quot;+compid;
	httpxml.onreadystatechange=stateck;
	httpxml.open(&quot;GET&quot;,url,true);
	httpxml.send(null);
}]]></property>
    <property name="Height">20</property>
    <property name="Left">785</property>
    <property name="Name">JTJavaScript2</property>
    <property name="Top">89</property>
    <property name="Width">180</property>
  </object>
  <object class="JTJavaScript" name="JTJavaScript3" >
    <property name="Code"><![CDATA[function AjaxType3(ty,compid)
{
var httpxml;
try
  {
  // Firefox, Opera 8.0+, Safari
  httpxml=new XMLHttpRequest();
  }
  catch (e)
  {
  // Internet Explorer
  try
  {
  httpxml=new ActiveXObject(&quot;Msxml2.XMLHTTP&quot;);
  }
  catch (e)
  {
  try
  {
  httpxml=new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);
  }
  catch (e)
  {
  alert(&quot;Your browser does not support AJAX!&quot;);
  return false;
  }
  }
  }
  function stateck()
  {
  if(httpxml.readyState==4)
  {
  //eval(httpxml.responseText);
  AjaxType('templatetypeajax.php','cmbType',compid);
  AjaxType('templatetypeajax.php','listType',compid);
  }
  }
  var url='deltemplatetypeajax.php';
  url=url+&quot;?val=&quot;+ty;
  url=url+&quot;&amp;compid=&quot;+compid;
  httpxml.onreadystatechange=stateck;
  httpxml.open(&quot;GET&quot;,url,true);
  httpxml.send(null);
}]]></property>
    <property name="Height">20</property>
    <property name="Left">785</property>
    <property name="Name">JTJavaScript3</property>
    <property name="Top">106</property>
    <property name="Width">180</property>
  </object>
  <object class="JTJavaScript" name="JTJavaScript4" >
    <property name="Code"><![CDATA[function AjaxDesc2(de,compid)
{ 
try
  {
  // Firefox, Opera 8.0+, Safari
  httpxml=new XMLHttpRequest();
  }
  catch (e)
  {
  // Internet Explorer
  try
  {
  httpxml=new ActiveXObject(&quot;Msxml2.XMLHTTP&quot;);
  }
  catch (e)
  {
  try
  {
  httpxml=new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);
  }
  catch (e)
  {
  alert(&quot;Your browser does not support AJAX!&quot;);
  return false;
  }
  }
  }
  function stateck()
  {
  if(httpxml.readyState==4)
  {
  //eval(httpxml.responseText);
  AjaxDesc('templatedescajax.php','cmbDesc',compid);
  AjaxDesc('templatedescajax.php','listDesc',compid);

  }
  }
  var url='addtemplatedescajax.php';
  url=url+&quot;?val=&quot;+de;
  url=url+&quot;&amp;compid=&quot;+compid;
  httpxml.onreadystatechange=stateck;
  httpxml.open(&quot;GET&quot;,url,true);
  httpxml.send(null);
}]]></property>
    <property name="Height">20</property>
    <property name="Left">785</property>
    <property name="Name">JTJavaScript4</property>
    <property name="Top">129</property>
    <property name="Width">180</property>
  </object>
  <object class="JTJavaScript" name="JTJavaScript5" >
    <property name="Code"><![CDATA[function AjaxDesc(urlget,elemidtochange,compid)
{
var httpxml;
try
{
	// Firefox, Opera 8.0+, Safari
	httpxml=new XMLHttpRequest();
	}
	catch (e)
	{
	// Internet Explorer
	try
	{
	httpxml=new ActiveXObject(&quot;Msxml2.XMLHTTP&quot;);
	}
	catch (e)
	{
	try
	{
	httpxml=new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);
	}
	catch (e)
	{
	alert(&quot;Your browser does not support AJAX!&quot;);
	return false;
	}
	}
	}
	function stateck() 
	{
	if(httpxml.readyState==4)
	{
	var myarray=eval(httpxml.responseText);
	// Before adding new we must remove previously loaded elements
	for(j=document.getElementById(elemidtochange).options.length-1;j&gt;=0;j--)
	{
	document.getElementById(elemidtochange).remove(j);
	}
	for (i=0;i&lt;myarray.length;i++)
	{
	var objDropdown = document.getElementById(elemidtochange);
	var objOption = new Option(myarray[i],myarray[i]);
	objDropdown.options[objDropdown.length] = objOption;
	}
	}
	}
	var url=urlget;
	url=url+&quot;?compider=&quot;+compid;
	httpxml.onreadystatechange=stateck;
	httpxml.open(&quot;GET&quot;,url,true);
	httpxml.send(null);
}]]></property>
    <property name="Height">20</property>
    <property name="Left">785</property>
    <property name="Name">JTJavaScript5</property>
    <property name="Top">145</property>
    <property name="Width">180</property>
  </object>
  <object class="JTJavaScript" name="JTJavaScript6" >
    <property name="Code"><![CDATA[function AjaxDesc3(de,compid)
{
var httpxml;
try
  {
  // Firefox, Opera 8.0+, Safari
  httpxml=new XMLHttpRequest();
  }
  catch (e)
  {
  // Internet Explorer
  try
  {
  httpxml=new ActiveXObject(&quot;Msxml2.XMLHTTP&quot;);
  }
  catch (e)
  {
  try
  {
  httpxml=new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);
  }
  catch (e)
  {
  alert(&quot;Your browser does not support AJAX!&quot;);
  return false;
  }
  }
  }
  function stateck()
  {
  if(httpxml.readyState==4)
  {
  //eval(httpxml.responseText);
  AjaxDesc('templatedescajax.php','cmbDesc',compid);
  AjaxDesc('templatedescajax.php','listDesc',compid);
  }
  }
  var url='deltemplatedescajax.php';
  url=url+&quot;?val=&quot;+de;
  url=url+&quot;&amp;compid=&quot;+compid;
  httpxml.onreadystatechange=stateck;
  httpxml.open(&quot;GET&quot;,url,true);
  httpxml.send(null);
}]]></property>
    <property name="Height">20</property>
    <property name="Left">785</property>
    <property name="Name">JTJavaScript6</property>
    <property name="Top">162</property>
    <property name="Width">180</property>
  </object>
  <object class="JTDivWindow" name="JTDivType" >
    <property name="AnchorsWorkaround">--Workaround--</property>
    <property name="BorderIcons">
        <property name="Help">0</property>
        <property name="Maximize">0</property>
        <property name="Minimize">0</property>
    </property>
    <property name="BorderStyle">bsSingle</property>
    <property name="Caption">Type</property>
    <property name="Height">251</property>
    <property name="Left">645</property>
    <property name="Name">JTDivType</property>
    <property name="SiteTheme"></property>
    <property name="Top">390</property>
    <property name="Width">320</property>
    <object class="JTGroupBox" name="JTGroupBox1" >
      <property name="AnchorsWorkaround">--Workaround--</property>
      <property name="Height">202</property>
      <property name="Left">17</property>
      <property name="Name">JTGroupBox1</property>
      <property name="SiteTheme"></property>
      <property name="Top">33</property>
      <property name="Width">286</property>
      <object class="ListBox" name="listType" >
        <property name="Color">#000000</property>
        <property name="Font">
                <property name="Color">#FFFFFF</property>
        </property>
        <property name="Height">153</property>
        <property name="Items">a:0:{}</property>
        <property name="Left">12</property>
        <property name="Name">listType</property>
        <property name="ParentColor">0</property>
        <property name="ParentFont">0</property>
        <property name="Top">43</property>
        <property name="Width">201</property>
      </object>
      <object class="Edit" name="edType" >
        <property name="Color">#000000</property>
        <property name="Font">
                <property name="Color">#FFFFFF</property>
        </property>
        <property name="Height">21</property>
        <property name="Left">12</property>
        <property name="Name">edType</property>
        <property name="ParentColor">0</property>
        <property name="ParentFont">0</property>
        <property name="Top">17</property>
        <property name="Width">201</property>
      </object>
      <object class="Button" name="btnDelType" >
        <property name="ButtonType">btNormal</property>
        <property name="Caption">Delete</property>
        <property name="Color">#000000</property>
        <property name="Font">
                <property name="Color">#FFFFFF</property>
        </property>
        <property name="Height">25</property>
        <property name="Left">217</property>
        <property name="Name">btnDelType</property>
        <property name="ParentColor">0</property>
        <property name="ParentFont">0</property>
        <property name="Top">168</property>
        <property name="Width">60</property>
        <property name="jsOnClick">btnDelTypeJSClick</property>
      </object>
      <object class="Button" name="btnAddType" >
        <property name="ButtonType">btNormal</property>
        <property name="Caption">Add</property>
        <property name="Color">#000000</property>
        <property name="Font">
                <property name="Color">#FFFFFF</property>
        </property>
        <property name="Height">25</property>
        <property name="Left">217</property>
        <property name="Name">btnAddType</property>
        <property name="ParentColor">0</property>
        <property name="ParentFont">0</property>
        <property name="Top">17</property>
        <property name="Width">60</property>
        <property name="jsOnClick">btnAddTypeJSClick</property>
      </object>
    </object>
  </object>
  <object class="JTDivWindow" name="JTDivDesc" >
    <property name="AnchorsWorkaround">--Workaround--</property>
    <property name="BorderIcons">
        <property name="Help">0</property>
        <property name="Maximize">0</property>
        <property name="Minimize">0</property>
    </property>
    <property name="BorderStyle">bsSingle</property>
    <property name="Caption">Description</property>
    <property name="Height">251</property>
    <property name="Left">602</property>
    <property name="Name">JTDivDesc</property>
    <property name="SiteTheme"></property>
    <property name="Top">389</property>
    <property name="Width">320</property>
    <object class="JTGroupBox" name="JTGroupBox2" >
      <property name="AnchorsWorkaround">--Workaround--</property>
      <property name="Height">202</property>
      <property name="Left">17</property>
      <property name="Name">JTGroupBox2</property>
      <property name="SiteTheme"></property>
      <property name="Top">32</property>
      <property name="Width">286</property>
      <object class="ListBox" name="listDesc" >
        <property name="Color">#000000</property>
        <property name="Font">
                <property name="Color">#FFFFFF</property>
        </property>
        <property name="Height">153</property>
        <property name="Items">a:0:{}</property>
        <property name="Left">12</property>
        <property name="Name">listDesc</property>
        <property name="ParentColor">0</property>
        <property name="ParentFont">0</property>
        <property name="Top">44</property>
        <property name="Width">201</property>
      </object>
      <object class="Edit" name="edDesc" >
        <property name="Color">#000000</property>
        <property name="Font">
                <property name="Color">#FFFFFF</property>
        </property>
        <property name="Height">21</property>
        <property name="Left">12</property>
        <property name="Name">edDesc</property>
        <property name="ParentColor">0</property>
        <property name="ParentFont">0</property>
        <property name="Top">17</property>
        <property name="Width">201</property>
      </object>
      <object class="Button" name="btnDelDesc" >
        <property name="ButtonType">btNormal</property>
        <property name="Caption">Delete</property>
        <property name="Color">#000000</property>
        <property name="Font">
                <property name="Color">#FFFFFF</property>
        </property>
        <property name="Height">25</property>
        <property name="Left">218</property>
        <property name="Name">btnDelDesc</property>
        <property name="ParentColor">0</property>
        <property name="ParentFont">0</property>
        <property name="Top">169</property>
        <property name="Width">60</property>
        <property name="jsOnClick">btnDelDescJSClick</property>
      </object>
      <object class="Button" name="btnAddDesc" >
        <property name="ButtonType">btNormal</property>
        <property name="Caption">Add</property>
        <property name="Color">#000000</property>
        <property name="Font">
                <property name="Color">#FFFFFF</property>
        </property>
        <property name="Height">25</property>
        <property name="Left">218</property>
        <property name="Name">btnAddDesc</property>
        <property name="ParentColor">0</property>
        <property name="ParentFont">0</property>
        <property name="Top">17</property>
        <property name="Width">60</property>
        <property name="jsOnClick">btnAddDescJSClick</property>
      </object>
    </object>
  </object>
  <object class="Image" name="imgBack" >
    <property name="Autosize">1</property>
    <property name="Border">0</property>
    <property name="Cursor">crPointer</property>
    <property name="Height">45</property>
    <property name="ImageSource">image/btn_back.png</property>
    <property name="Left">992</property>
    <property name="Link"></property>
    <property name="LinkTarget"></property>
    <property name="Name">imgBack</property>
    <property name="Width">45</property>
    <property name="jsOnMouseOut">imgBackJSMouseOut</property>
    <property name="jsOnMouseOver">imgBackJSMouseOver</property>
  </object>
  <object class="JTJavaScript" name="JTJavaScript7" >
    <property name="Code"><![CDATA[function AjaxTemp2(pa,compid)
{ 
try
  {
  // Firefox, Opera 8.0+, Safari
  httpxml=new XMLHttpRequest();
  }
  catch (e)
  {
  // Internet Explorer
  try
  {
  httpxml=new ActiveXObject(&quot;Msxml2.XMLHTTP&quot;);
  }
  catch (e)
  {
  try
  {
  httpxml=new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);
  }
  catch (e)
  {
  alert(&quot;Your browser does not support AJAX!&quot;);
  return false;
  }
  }
  }
  function stateck()
  {
  if(httpxml.readyState==4)
  {
  //eval(httpxml.responseText);
  AjaxTemp('templatetype2ajax.php','cmbType',compid);
  AjaxTemp('templatetype2ajax.php','listType',compid);

  }
  }
  var url='addtemplatetype2ajax.php';
  url=url+&quot;?val=&quot;+pa;
  url=url+&quot;&amp;compid=&quot;+compid;
  httpxml.onreadystatechange=stateck;
  httpxml.open(&quot;GET&quot;,url,true);
  httpxml.send(null);
}]]></property>
    <property name="Height">20</property>
    <property name="Left">785</property>
    <property name="Name">JTJavaScript7</property>
    <property name="Top">186</property>
    <property name="Width">180</property>
  </object>
  <object class="JTJavaScript" name="JTJavaScript8" >
    <property name="Code"><![CDATA[function AjaxTemp(urlget,elemidtochange,compid)
{
var httpxml;
try
{
	// Firefox, Opera 8.0+, Safari
	httpxml=new XMLHttpRequest();
	}
	catch (e)
	{
	// Internet Explorer
	try
	{
	httpxml=new ActiveXObject(&quot;Msxml2.XMLHTTP&quot;);
	}
	catch (e)
	{
	try
	{
	httpxml=new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);
	}
	catch (e)
	{
	alert(&quot;Your browser does not support AJAX!&quot;);
	return false;
	}
	}
	}
	function stateck() 
	{
	if(httpxml.readyState==4)
	{
	var myarray=eval(httpxml.responseText);
	// Before adding new we must remove previously loaded elements
	for(j=document.getElementById(elemidtochange).options.length-1;j&gt;=0;j--)
	{
	document.getElementById(elemidtochange).remove(j);
	}
	for (i=0;i&lt;myarray.length;i++)
	{
	var objDropdown = document.getElementById(elemidtochange);
	var objOption = new Option(myarray[i],myarray[i]);
	objDropdown.options[objDropdown.length] = objOption;
	}
	}
	}
	var url=urlget;
	url=url+&quot;?compider=&quot;+compid;
	httpxml.onreadystatechange=stateck;
	httpxml.open(&quot;GET&quot;,url,true);
	httpxml.send(null);
}]]></property>
    <property name="Height">20</property>
    <property name="Left">785</property>
    <property name="Name">JTJavaScript8</property>
    <property name="Top">206</property>
    <property name="Width">180</property>
  </object>
  <object class="JTJavaScript" name="JTJavaScript9" >
    <property name="Code"><![CDATA[function AjaxTemp3(pa,compid)
{
var httpxml;
try
  {
  // Firefox, Opera 8.0+, Safari
  httpxml=new XMLHttpRequest();
  }
  catch (e)
  {
  // Internet Explorer
  try
  {
  httpxml=new ActiveXObject(&quot;Msxml2.XMLHTTP&quot;);
  }
  catch (e)
  {
  try
  {
  httpxml=new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);
  }
  catch (e)
  {
  alert(&quot;Your browser does not support AJAX!&quot;);
  return false;
  }
  }
  }
  function stateck()
  {
  if(httpxml.readyState==4)
  {
  //eval(httpxml.responseText);
  AjaxTemp('templatetype2ajax.php','cmbType',compid);
  AjaxTemp('templatetype2ajax.php','listType',compid);
  }
  }
  var url='deltemplatetype2ajax.php';
  url=url+&quot;?val=&quot;+pa;
  url=url+&quot;&amp;compid=&quot;+compid;
  httpxml.onreadystatechange=stateck;
  httpxml.open(&quot;GET&quot;,url,true);
  httpxml.send(null);
}]]></property>
    <property name="Height">20</property>
    <property name="Left">785</property>
    <property name="Name">JTJavaScript9</property>
    <property name="Top">226</property>
    <property name="Width">180</property>
  </object>
  <object class="Button" name="btnSubmit" >
    <property name="Caption">Submit</property>
    <property name="Color">#000000</property>
    <property name="Cursor">crPointer</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">25</property>
    <property name="Left">39</property>
    <property name="Name">btnSubmit</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">12</property>
    <property name="Top">365</property>
    <property name="Width">75</property>
    <property name="OnClick">btnSubmitClick</property>
  </object>
  <object class="Button" name="btnCancel" >
    <property name="Caption">Cancel</property>
    <property name="Color">#000000</property>
    <property name="Cursor">crPointer</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">25</property>
    <property name="Left">126</property>
    <property name="Name">btnCancel</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">13</property>
    <property name="Top">365</property>
    <property name="Width">75</property>
    <property name="OnClick">btnCancelClick</property>
  </object>
  <object class="Edit" name="edDescTemp" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Left">158</property>
    <property name="Name">edDescTemp</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">9</property>
    <property name="Top">230</property>
    <property name="Width">385</property>
  </object>
  <object class="Label" name="lblhours" >
    <property name="Caption">Hours</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">12</property>
    <property name="Left">284</property>
    <property name="Name">lblhours</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">415</property>
    <property name="Visible">0</property>
    <property name="Width">36</property>
  </object>
  <object class="CheckBox" name="CheckBox1" >
    <property name="Caption"><![CDATA[&amp;nbsp;Recurring]]></property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Left">158</property>
    <property name="Name">CheckBox1</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">72</property>
    <property name="Width">85</property>
  </object>
  <object class="Label" name="Label4" >
    <property name="Alignment">agRight</property>
    <property name="Caption">Due Date:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">15</property>
    <property name="Left">71</property>
    <property name="Name">Label4</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">137</property>
    <property name="Width">75</property>
  </object>
  <object class="DateTimePicker" name="DateTimePicker1" >
    <property name="Caption">dpBasis</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="IfFormat">%Y-%m-%d</property>
    <property name="Left">158</property>
    <property name="Name">DateTimePicker1</property>
    <property name="ParentFont">0</property>
    <property name="Top">134</property>
    <property name="Width">157</property>
  </object>
  <object class="Label" name="Label6" >
    <property name="Alignment">agRight</property>
    <property name="Caption">due every</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">15</property>
    <property name="Left">319</property>
    <property name="Name">Label6</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">137</property>
    <property name="Width">59</property>
  </object>
  <object class="Edit" name="Edit1" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Left">381</property>
    <property name="Name">Edit1</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">9</property>
    <property name="Top">134</property>
    <property name="Width">70</property>
  </object>
  <object class="ComboBox" name="ComboBox1" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Items"><![CDATA[a:2:{s:4:&quot;Days&quot;;s:4:&quot;Days&quot;;s:6:&quot;Months&quot;;s:6:&quot;Months&quot;;}]]></property>
    <property name="Left">453</property>
    <property name="Name">ComboBox1</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">1</property>
    <property name="Top">134</property>
    <property name="Width">90</property>
    <property name="OnChange">cmbScheduleChange</property>
  </object>
  <object class="Label" name="Label7" >
    <property name="Alignment">agLeft</property>
    <property name="Caption">Remind me:</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Align">taRight</property>
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">31</property>
    <property name="Name">Label7</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">168</property>
    <property name="Width">115</property>
  </object>
  <object class="Edit" name="Edit2" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Left">157</property>
    <property name="Name">Edit2</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">9</property>
    <property name="Top">164</property>
    <property name="Width">73</property>
  </object>
  <object class="ComboBox" name="ComboBox2" >
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">21</property>
    <property name="Items"><![CDATA[a:2:{s:4:&quot;Days&quot;;s:4:&quot;Days&quot;;s:6:&quot;Months&quot;;s:6:&quot;Months&quot;;}]]></property>
    <property name="Left">231</property>
    <property name="Name">ComboBox2</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="TabOrder">1</property>
    <property name="Top">164</property>
    <property name="Width">84</property>
    <property name="OnChange">cmbScheduleChange</property>
  </object>
  <object class="Label" name="Label8" >
    <property name="Alignment">agLeft</property>
    <property name="Caption">before due date</property>
    <property name="Color">#000000</property>
    <property name="Font">
        <property name="Align">taLeft</property>
        <property name="Color">#FFFFFF</property>
    </property>
    <property name="Height">13</property>
    <property name="Left">324</property>
    <property name="Name">Label8</property>
    <property name="ParentColor">0</property>
    <property name="ParentFont">0</property>
    <property name="Top">168</property>
    <property name="Width">219</property>
  </object>
  <object class="JTSiteTheme" name="JTSiteTheme1" >
        <property name="Left">984</property>
        <property name="Top">80</property>
    <property name="Name">JTSiteTheme1</property>
    <property name="Theme">black</property>
  </object>
</object>
?>
